package com.wlc.pac;

public class Producer  extends Thread{
	private int pnum;
	private Storage storage;
	public Producer() {};
	public Producer(int pnum, Storage storage) {
		super();
		this.pnum = pnum;
		this.storage = storage;
	}
	public int getPnum() {
		return pnum;
	}
	public void setPnum(int pnum) {
		this.pnum = pnum;
	}
	public Storage getStorage() {
		return storage;
	}
	public void setStorage(Storage storage) {
		this.storage = storage;
	}
	public void run() {
		storage.produce(pnum);
	}
	
}
